﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using QLKDS.Reports;
using QLKDS.DAL;

namespace QLKDS.Forms.Report
{
    public partial class frmExportDateReport : DevExpress.XtraEditors.XtraForm
    {

        ExportDateReportManager manager = new ExportDateReportManager();
        public frmExportDateReport()
        {
            InitializeComponent();
        }

        private void frmDateReport_Load(object sender, EventArgs e)
        {

        }

        private void btnReport_Click(object sender, EventArgs e)
        {
            rptExportDate rpt = new rptExportDate();
            rpt.DataSource = manager.ListEmployee(this.dateEdit1.DateTime.Date);
            princontrol.PrintingSystem = rpt.PrintingSystem;

            rpt.CreateDocument();
        }
    }
}